package vn.aptech.scrumgroup.interfaceforshape;

import android.graphics.BlurMaskFilter;
import android.graphics.BlurMaskFilter.Blur;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;

public class MakePathGlow {
private Blur styleGlow=BlurMaskFilter.Blur.OUTER;
public static final Blur OUTER=BlurMaskFilter.Blur.OUTER;
public static final Blur NORMAL=BlurMaskFilter.Blur.NORMAL;
public static final Blur SOLID=BlurMaskFilter.Blur.SOLID;
public static final Blur INNER=BlurMaskFilter.Blur.INNER;
private int color=Color.WHITE;
	public void drawGlow(IGlow shape,Canvas canvas,Paint paint,int value)
		{
//			draw(canvas,paint);
			if(value!=0)
			{
				BlurMaskFilter blurMaskFilter = new BlurMaskFilter(value,styleGlow);
			paint.setMaskFilter(blurMaskFilter);
			paint.setColor(color);
			
			canvas.drawPath(shape.getPathToGlow(), paint);
			}
		}
	public Blur getStyleGlow() {
		return styleGlow;
	}
	public void setStyleGlow(Blur styleGlow) {
		this.styleGlow = styleGlow;
	}
	public int getColor() {
		return color;
	}
	public void setColor(int color) {
		this.color = color;
	}
	
}
